import request from "@/utils/requestBase";

/**
 * @description 写评价
 */
export function addEvaluation(data: any) {
  return request.post({
    url: "/appraise/add",
    data,
  });
}

/**
 * @description 评价图表统计
 */
export function evaluationStat(data: any) {
  return request.get({
    url: "/appraise/manageStatistics",
    data,
  });
}

/**
 * @description 评价详情列表数据
 */
export function listEvaluation(data: any) {
  return request.get({
    url: "/appraise/listPagePolice",
    data,
  });
}

/**
 * @description 评价数量统计
 */
export function listEvaluationCount(data: any) {
  return request.get({
    url: "/appraise/listPoliceCount",
    data,
  });
}

/**
 * @description 历史评价列表
 */
export function listEvaluationHis(data: any) {
  return request.get({
    url: "/appraise/listPage",
    data,
  });
}

/**
 * @description 删除评价
 */
export function delEvaluation(ids: any) {
  return request.del({
    url: `/appraise/delete/${ids}`,
  });
}
